package com.luoqiu.yygh;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @ComponentScan 是为了扫描swagger的配置文件 而配置文件在模块 common中的common_service的模块中，在service的模块中的pom.xml文件中已经引入了这个模块 所以这里需要扫描这个引入模块的包路径
 */
@SpringBootApplication
@ComponentScan(basePackages = "com.luoqiu")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.luoqiu")
public class ServiceHospApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class, args);
    }
}
